﻿using System;
using System.Windows.Input;
using GermaneShanidze.Applications.Jokeri.ModalWindow.Inteface;
using Microsoft.Practices.Prism.Commands;

namespace GermaneShanidze.Applications.Jokeri.ViewModels
{
    public class GameInvitationModalViewModel : ViewModelBase
    {
        public bool? DialogResult { get; set; }

        public ICommand OkCommand { get; private set; }
        public ICommand CancelCommand { get; private set; }

        public GameInvitationModalViewModel()
        {
            OkCommand = new DelegateCommand<object>(OkClick);
            CancelCommand = new DelegateCommand<object>(CancelClick);
        }

        private void OkClick(object obj)
        {
            DialogResult = true;
        }

        private void CancelClick(object obj)
        {
            DialogResult = false;
        }
    }
}
